home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / protect_the_fire.swf / scripts / DefineSprite_279 / frame_2 / DoAction.as
Text File  |  2007-01-15  |  651b  |  21 lines

  1. nutx = getProperty("../nut", _X);
  2. nuty = getProperty("../nut", _Y);
  3. tarx = getProperty("../pline", _X) - getProperty("../pline", _width);
  4. if(getProperty("../pline", _rotation) < "0")
  5. {
  6.    tary = getProperty("../pline", _Y) + getProperty("../pline", _height);
  7. }
  8. else
  9. {
  10.    tary = getProperty("../pline", _Y) - getProperty("../pline", _height);
  11. }
  12. setProperty("../nut", _xscale, "120");
  13. setProperty("../nut", _yscale, "120");
  14. fcount = int(getProperty("../pline", _currentframe) / "5") + "2";
  15. trace(fcount);
  16. deltax = (tarx - nutx) / fcount;
  17. deltay = (tary - nuty) / fcount;
  18. fhalf = int(fcount / "2");
  19. inc = fhalf * "5";
  20. gotoAndPlay(3);
  21.